package com.todo.content.application.remote;

import com.todo.biz.service.api.request.QueryBizCounterByBizIdRequest;
import com.todo.biz.service.api.response.BizCounterBaseResponse;
import com.todo.common.common.entity.response.BizResponse;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/2/28 02:10
 * @description
 */
@FeignClient(name = "todoBizBaseService", url = "http://localhost:18100")
public interface BizCounterRemoteService {

    @Operation(summary = "根据业务id查询业务计数器")
    @PostMapping("/api/biz/counter/queryBizCounterByBizId")
    BizResponse<List<BizCounterBaseResponse>> queryBizCounterByBizId(QueryBizCounterByBizIdRequest request);
}
